/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.pretorius.question3.srp.conf;

import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.pretorius.question3.srp.service.CalculatorService;
import za.ac.cput.pretorius.question3.srp.service.ConverterService;
import za.ac.cput.pretorius.question3.srp.service.PrinterService;
import za.ac.cput.pretorius.question3.srp.service.impl.CalculatorServiceImpl;
import za.ac.cput.pretorius.question3.srp.service.impl.ConverterServiceImpl;
import za.ac.cput.pretorius.question3.srp.service.impl.PrinterServiceImpl;
/**
 *
 * @author griddy
 */
@Configurable
public class Config {
    
    @Bean(name="CalculatorService")
    public CalculatorService calcService()
    {
        return new CalculatorServiceImpl();
    }
    
    @Bean(name="ConverterService")
    public ConverterService convertService()
    {
        return new ConverterServiceImpl();
    }
    
    @Bean(name="ScreenPrintService")
    public PrinterService printService()
    {
        return new PrinterServiceImpl();
    }
    
    
}
